/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bsd5ex.group1.kaokang.servlet;

import com.bsd5ex.group1.kaokang.MenuGenerator;
import com.bsd5ex.group1.kaokang.dbUtil.HibernateUtil;
import com.bsd5ex.group1.kaokang.model.Bom;
import com.bsd5ex.group1.kaokang.model.Food;
import com.bsd5ex.group1.kaokang.model.FoodType;
import com.bsd5ex.group1.kaokang.model.PickingType;
import java.io.IOException;
import java.io.PrintWriter;
 
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.hibernate.Hibernate;
/**
 *
 * @author VAIO
 */
public class MenuServlet extends HttpServlet {

    private MenuGenerator menuGenerator;
    
    @Override
    public void init(ServletConfig config) throws ServletException {
        super.init(config);
        menuGenerator = new MenuGenerator();
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        getServletContext().getRequestDispatcher("/menu.jsp").forward(req, resp); 
    }

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        getServletContext().getRequestDispatcher("/menu.jsp").forward(req, resp); 
        
    }

    @Override
    public void destroy() {
        super.destroy();
    }
    
}
